package com.mes_for_xxxxxx.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 客户信息表，存储客户相关信息
 * </p>
 *
 * @author 179005
 * @since 2024-09-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("customer")
@ApiModel(value="Customer对象", description="客户信息表，存储客户相关信息")
public class Customer implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "客户ID，主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "客户编码，用于唯一标识客户")
    private String customerCode;

    @ApiModelProperty(value = "客户名称")
    private String customerName;

    @ApiModelProperty(value = "客户简称，可选字段")
    private String customerShortName;

    @ApiModelProperty(value = "客户类型，如个人、企业等")
    private String customerType;

    @ApiModelProperty(value = "客户电话，可选字段")
    private String customerPhone;

    @ApiModelProperty(value = "联系人姓名，可选字段")
    private String contactPerson;

    @ApiModelProperty(value = "联系人电话，可选字段")
    private String contactPhone;

    @ApiModelProperty(value = "是否启用，1为启用，0为禁用")
    private Boolean enabled;

    @ApiModelProperty(value = "创建时间，可选字段，记录客户信息的创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新时间，可选字段，记录客户信息的最后更新时间")
    private LocalDateTime updateTime;


}
